package com.candy.candyshortlinkservice.service;

//import com.alibaba.cloud.dubbo.annotation.DubboTransported;

import com.candy.candycommon.utils.ResultBean;
import com.candy.candyshortlinkservice.dto.ShortLinkDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "dubboShortLink", value = "candy-shortLink", path = "dubboShortLink")
//@DubboTransported(protocol = "dubbo")
public interface DubboShortLinkService {

    @PostMapping("convert")
    ResultBean convert(@RequestBody ShortLinkDTO logLinkDTO);

    @PostMapping("convertBatch")
    ResultBean convertBatch(@RequestBody List<ShortLinkDTO> logLinkDTO);

}
